from django.urls import path,re_path,include
from . import views
from rest_framework.routers import SimpleRouter

router = SimpleRouter()
router.register('register', views.RegisterView, 'register')
router.register('', views.SendSmsView, 'send')
router.register('', views.LoginView, 'login')
# router.register('userinfo', views.UserView, 'userinfo')

urlpatterns = [
    path('', include(router.urls)),
    re_path('userinfo/(?P<pk>\d+)', views.UserDetailView.as_view()),
    re_path('userinfo', views.UserDetailView.as_view()),
    # path('set_userinfo/', views.SetAvatarView.as_view()),
]
